/*    */ package com.yc.util;
/*    */ 
/*    */ import java.io.PrintStream;
/*    */ import javax.servlet.ServletContext;
/*    */ import javax.servlet.http.HttpServlet;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.PropertyConfigurator;
/*    */ 
/*    */ public class Log4jInit extends HttpServlet
/*    */ {
/*    */   public void init()
/*    */   {
/* 11 */     String prefix = getServletContext().getRealPath("/");
/* 12 */     String file = getInitParameter("log4j");
/* 13 */     System.out.println("................log4j start: [" + prefix + file + "]");
/* 14 */     if (file != null)
/*    */     {
/* 16 */       PropertyConfigurator.configure(prefix + file);
/*    */     }
/*    */   }
/*    */ 
/*    */   public void doGet(HttpServletRequest req, HttpServletResponse res)
/*    */   {
/*    */   }
/*    */ }

/* Location:           E:\java\apache-tomcat-6.0.36\webapps\btsm\WEB-INF\classes\
 * Qualified Name:     com.yc.util.Log4jInit
 * JD-Core Version:    0.6.2
 */